import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import components from '@/components'

// 注册全局组件
Vue.use(components)
// 使用ElementUI
Vue.use(ElementUI)

// 开发环境下使用mock
if (process.env.NODE_ENV === 'development') {
    require('./mock')
}

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
